package cn.scxy.bookcity.mapper;

import cn.scxy.bookcity.pojo.entity.CarProduct;
import cn.scxy.bookcity.pojo.vo.ShoppingCarStandardVO;
import cn.scxy.bookcity.pojo.vo.shoppingCarVO;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * 通过商品id查询购物车商品信息和url图片
 * 作者 ：潘志杰
 */
@Repository
public interface ShoppingCarMapper {
    int insert(CarProduct carProduct);

    int update(CarProduct carProduct);

    int deleteById(Long id);

    int deleteByIds(Long[] ids);

    List<shoppingCarVO> list(Long uid);

    int countByUid(Long id);

    int countByGid(Long id);

    ShoppingCarStandardVO getStandardById(Long id);
}
